package cn.imvc.app.repositories;

import java.util.Date;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.GoodsOrder;
import cn.imvc.app.entities.Orders;
import cn.imvc.data.jpa.repository.IJpqlExecutor;

public interface GoodsOrderRepository extends JpaRepository<GoodsOrder, Integer>,IJpqlExecutor<GoodsOrder>{

	List<GoodsOrder> findByState(Byte value);

	List<GoodsOrder> findByOrder(Orders order);

	List<GoodsOrder> findByStateAndCreatedAtLessThan(Byte value, Date time);

}
